package com.share.admin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.share.admin.mapper.OssFileMapper;
import com.share.admin.model.db.OssFile;
import com.share.admin.service.IOssFileService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author author
 * @since 2022-09-22
 */
@Service
public class OssFileServiceImpl extends ServiceImpl<OssFileMapper, OssFile> implements IOssFileService {
    @Resource
    private OssFileMapper ossFileMapper;

    @Override
    public List<OssFile> listFile(String code) {
        QueryWrapper<OssFile> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("code", code);
        return ossFileMapper.selectList(queryWrapper);
    }
}
